﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
///ClassField 的摘要说明
/// </summary>
public class ClassField
{
    public int x;             //定义一个非静态字段
    public static int y;        //定义一个静态字段
    public int add_x()        //定义一个非静态方法
    {
        x++;
        return x;
    }
    public static int add_y()   //定义一个静态方法
    {
        y++;
        return y;
    }

}
